package com.yykj.tencent.im.client.fallback;

import com.yykj.tencent.im.client.feign.TencentImFeignClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class TencentImFallbackFactory implements FallbackFactory<TencentImFeignClient> {
    @Override
    public TencentImFeignClient create(Throwable throwable) {
        System.out.println("腾讯云微服务调用客户端出错:" + throwable.getMessage());
        throwable.printStackTrace();
        return null;
    }

}
